package com.gblfy.api;

import com.gblfy.api.factory.RemoteShopCartFallbackFactory;
import com.gblfy.common.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = ServiceNameConstants.SHOP_CART_SERVICE, contextId = "remoteShopCartService", fallbackFactory = RemoteShopCartFallbackFactory.class)
public interface RemoteShopCartService {

    @GetMapping("/getDubboHello")
    public String getDubboHello(@RequestParam("name") String name);

}
